const Router = require('koa-router');
const router = new Router();
const {db, QueryTypes} = require("../../models/db");

router.post('/deliver/delAreaById', async ctx => {
    let id = ctx.request.body.id;
    let tenantId = ctx.user.tenantId;
    await db.models['area'].destroy({
        where: {
            id: id,
            tenantId: tenantId
        }
    })
    return ctx.suc('已删除');
})

module.exports = router;
